<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>商品详情</title>
		<meta name="viewport" content="initial-scale=1, maximum-scale=1">
		<link rel="shortcut icon" href="/favicon.ico">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<style type="text/css">
			* {
				margin: 0px;
				padding: 0px;
			}
		</style>
		<script src="js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function() {
				function getUrlParam(name) {
					var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
					var r = window.location.search.substr(1).match(reg); //匹配目标参数
					if (r != null) return unescape(r[2]);
					return null; //返回参数值
				}
//				var id = getUrlParam('id');
				var awardId = getUrlParam('awardId');
                if (awardId == 7) {
                    $(".selector1").load("http://www.xiaoxiaokm.com/text/mobilePendant.html");
//					$("#iframes").attr("src", "mobilePendant.html");
                } else if (awardId == 8) {
                    $(".selector1").load("http://www.xiaoxiaokm.com/text/mobilePhoneShell.html");
                } else if (awardId == 10) {
                    $(".selector1").load("http://www.xiaoxiaokm.com/text/iPhone7.html");
                } else if (awardId == 9) {
                    $(".selector1").load("http://www.xiaoxiaokm.com/text/appleComputer.html");
                }
				
				
				
				var windowWidth = window.innerWidth;
				var windowHeight = window.innerHeight;
				var iframeHeight = windowHeight - 50;
				$("body").css("height", "" + windowHeight + "px");
				$("#iframes").css("height", "" + iframeHeight + "px");
			});
		</script>
	</head>

	<body style="position: relative;">
		<!--<iframe id="iframes"  width="100%" height="100%" scrolling="yes" frameborder="0"></iframe>-->
		<div class="selector1"></div>
		<div id="go_order" style="width: 100%;line-height: 50px;height: 50px;text-align: center;background-color: royalblue;color: white;position: fixed;z-index: 999;bottom: 0;">立即获取</div>
	</body>
	<script type="text/javascript">
		$("#go_order").click(function() {
			function getUrlParam(name) {
				var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
				var r = window.location.search.substr(1).match(reg); //匹配目标参数
				if (r != null) return unescape(r[2]);
				return null; //返回参数值
			}
			var id = getUrlParam('id');
			var awardId = getUrlParam('awardId');
			window.location.href = "order.html?onlyId=" + id + "&awardId=" + awardId;
		});
	</script>

</html>